﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="JWBSTAPP.TbBstOnlineAskReply"
    CodeBehind="TbBstOnlineAskReply.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>修改</title>
    <link href="../Styles/AddOrEditPage.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../Styles/validationEngine.jquery.css" type="text/css"
        media="screen" charset="utf-8" />
    <script src="../Scripts/jQuery-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine-cn.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine.js"></script>
    <script type="text/javascript" src="../Scripts/CommonADEQ3.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var id = request("id");
            initDetailPage("TbBstOnlineAskForm", "../AjaxServer/Application/TbBstOnlineAskHandler.ashx");
            $("#texReplycontent").val($("#LabReplycontent").html());
            $("#Submit").bind("click", function () {
                if ($("#texReplycontent").val().length == 0) {
                    alert("回复内容不能为空");
                    return;
                }
                $.ajax({
                    type: "post",
                    async: false,
                    data: { "id": id, "action": "ReplyRecord", "texReplycontent": $("#texReplycontent").val() },
                    dataType: "json",
                    url: "../AjaxServer/Application/TbBstOnlineAskHandler.ashx",
                    success: function (message) {
                        if (message.ISSucceed != "undefined" && message.ISSucceed == false) {
                            alert(message.Message);
                        }
                        else {
                            window.parent.tb_remove();
                        }
                        window.parent.pageClick();
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        alert(errorThrown);
                    }
                });
            });
        });
 
    </script>
</head>
<body>
    <div class="container">
        <form id="TbBstOnlineAskForm" action="" method="get" runat="server">
        <table class="mainTable">
            <tr>
                <td class="mainTable_TitleTd" colspan="4">
                    在线咨询回复
                </td>
            </tr>
            <tr>
                <td align="left" colspan="4">
                    <span class="style1"><strong>咨询信息</strong></span><b> </b>
                </td>
            </tr>
             <tr>
                <td class="mainTable_LeftTd">
                    流水号：
                </td>
                <td class="mainTable_RightTd">
                    <label id="LabLsh" name="LabLsh">
                    </label>
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    姓名：
                </td>
                <td class="mainTable_RightTd">
                    <label id="LabName" name="LabName">
                    </label>
                </td>
                <td class="mainTable_LeftTd">
                    电话：
                </td>
                <td class="mainTable_RightTd">
                    <label id="LabPhone" name="LabPhone">
                    </label>
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    内容：
                </td>
                <td class="mainTable_RightTd" colspan="3">
                    <label id="LabContent" name="LabContent">
                    </label>
                </td>
            </tr>
            <tr>
                <td class="style2" align="left" colspan="4">
                    <span class="style1"><strong>回复信息</strong></span><b> </b>
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    回复内容：
                </td>
                <td class="mainTable_RightTd" colspan="3">
                    <label id="LabReplycontent" name="LabReplycontent" style="display: none">
                    </label>
                    <textarea id="texReplycontent" class="validate[required,min,1]" name="texReplycontent"
                        onkeydown="checkMaxInput(this,2000)" onkeyup="checkMaxInput(this,2000)" cols="20"
                        rows="2" style="width: 591px; height: 60px"></textarea><em>*</em>
                </td>
            </tr>
            <tr>
                <td class="mainTable_ButtonTd" colspan="4">
                    <input class="button" id="Submit" type="button" value="提交" />
                    <input class="button" type="button" value="取消" onclick="window.parent.tb_remove();" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
